package com.fdd.op.sdk.request.api.contract.doc;

import com.fdd.op.sdk.ApiRuleException;
import com.fdd.op.sdk.BaseFddRequest;
import com.fdd.op.sdk.constants.Constants;
import com.fdd.op.sdk.internal.mapping.RequestField;
import com.fdd.op.sdk.model.dto.ContractCcPersonDTO;
import com.fdd.op.sdk.response.api.contract.doc.CCResponse;

import java.util.List;
import java.util.Map;

public class CCRequest extends BaseFddRequest<CCResponse> {
    @Override
    public String getApiMethodName() {
        return "/base/api/contract/doc/cc";
    }

    @Override
    public Map<String, Object> getTextParams() {
        return null;
    }

    @Override
    public Class<CCResponse> getResponseClass() {
        return CCResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public String getHttpMethod() {
        return Constants.METHOD_POST;
    }

    @RequestField
    private String docId;

    @RequestField
    private String tpDocId;

    @RequestField
    private List<ContractCcPersonDTO> contractCcPersonDTOS;

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getTpDocId() {
        return tpDocId;
    }

    public void setTpDocId(String tpDocId) {
        this.tpDocId = tpDocId;
    }

    public List<ContractCcPersonDTO> getContractCcPersonDTOS() {
        return contractCcPersonDTOS;
    }

    public void setContractCcPersonDTOS(List<ContractCcPersonDTO> contractCcPersonDTOS) {
        this.contractCcPersonDTOS = contractCcPersonDTOS;
    }
}
